package com.haizhi.crm.persist.model;

import com.haizhi.crm.persist.constant.PersistTarget;
import lombok.Data;

import java.util.*;

/**
 * Created by chengmo on 2018/6/19.
 */
@Data
public class PersistReq {
    private Set<PersistTarget> targets = new HashSet<>();
    private Map<String, Object> requestApi = new HashMap<>();

    public void addTargets(PersistTarget... targets) {
        this.targets.addAll(Arrays.asList(targets));
    }
}
